package org.example.pojo;


import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.example.em.ProjectDelectStatus;
import org.hibernate.validator.constraints.Range;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProjectInfoParam {

    //推广状态
    private ProjectDelectStatus projectDelectStatus;
    //当前页码
    @NotNull(message = "页码不能为空")
    @Range(min = 1, max = 10000, message = "页码错误")
    private Integer pageNum;//当前页码
    //每页条数
    @NotNull(message = "不能为空")
    @Range(min = 1, max = 1000, message = "每页条数错误")
    private Integer pageSize;//每页条数
}